home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample PMSAM / PMSAM Framework / RoboSamSlot / OutgoingLetterStream.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.7 KB  |  99 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        OutgoingLetterStream.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Tim Harnett
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     1/27/95    TMH        handle unresolved recipients
  13.          <1>     1/13/95    TMH        abstract class for outgoing letter
  14.          <1>     1/13/95    TMH        abstract class for outgoing letter
  15.                  1/11/95    TMH        xxx put comment here xxx
  16.  
  17.     To Do:
  18. */
  19.  
  20. #ifndef __OutgoingLetterStream__
  21. #define __OutgoingLetterStream__
  22.  
  23. class TMSAMSlot;
  24.  
  25. #ifndef __OCEMail__
  26. #include "OCEMail.h"
  27. #endif
  28.  
  29. //--------------------------------------------
  30. //    C O u t g o i n g L e t t e r S t r e a m
  31. //--------------------------------------------
  32.  
  33. class CUnpackedDSSpec;
  34.  
  35. class COutgoingLetterStream {
  36. public:
  37.     COutgoingLetterStream(TMSAMSlot* msamSlot);
  38.  
  39.  
  40.         //---------------
  41.         //    Letter Header
  42.         //---------------
  43.         
  44.     virtual    void    WriteSendDate(MailTime& utcTime);
  45.     virtual    void    WriteSubject(StringPtr subject);
  46.  
  47.         //------------
  48.         //    Recipients
  49.         //------------
  50.         
  51.     virtual    void     WriteResolvedRecipient(CUnpackedDSSpec& recipient,short recipientType,short recipientCount,Boolean more);
  52.     virtual    void     WriteResolvedRecipient(StringPtr recipient,short recipientType, short recipientCount,Boolean more);
  53.     
  54.     virtual    void     BeginUnResolvedRecipients(short recipientType);
  55.     virtual    void     EndUnResolvedRecipients(short recipientType);
  56.     
  57.     virtual    void     WriteUnResolvedRecipient(CUnpackedDSSpec& recipient,short recipientType,long recipientCount);
  58.     virtual    void     WriteUnResolvedRecipient(StringPtr recipient,short recipientType,long recipientCount);
  59.  
  60.  
  61.         //----------
  62.         //    Content
  63.         //---------
  64.     
  65.     virtual    void    BeginBody();
  66.     virtual    void    EndBody();
  67.     
  68.             void    WriteBodyStr(char* str);
  69.             void    WriteBodyStr(StringPtr str);
  70.  
  71.     virtual    void    WriteBodyText(char* text,long textLen,Boolean more);
  72.     
  73.     virtual void     WritePict(void* pictData,long pictDataLen,Boolean more);
  74.     virtual void     WriteSound(void* soundData,long soundDataLen,Boolean more);
  75.     virtual void     WriteMovie(void* movieData,long movieDataLen,Boolean more);
  76.  
  77.  
  78.         //----------------------------
  79.         //    Nested (forwarded) Letters
  80.         //----------------------------
  81.  
  82.     virtual void    BeginNestedLetter();
  83.     virtual void    EndNestedLetter();
  84.     
  85.     virtual    void    WriteNestedSendDate(MailTime& utcTime);
  86.     virtual    void    WriteNestedSubject(StringPtr subject);
  87.     
  88.     virtual void    BeginNestedRecipients(short recipientType);
  89.     virtual void    EndNestedRecipients(short recipientType);
  90.     
  91.     virtual    void     WriteNestedRecipient(CUnpackedDSSpec& recipient,short recipientType,short recipientCount);
  92.     virtual    void     WriteNestedRecipient(StringPtr recipient,short recipientType, short recipientCount);
  93.  
  94.  
  95. private:
  96.     TMSAMSlot*    fMSAMSlot;
  97. };
  98.  
  99. #endif __OutgoingLetterStream__